<?php
namespace app\home\controller;

//引入底层控制器
use think\Controller;

//控制器 Controller
class Index extends Controller
{
    public function __construct()
    {
        //继承底层的构造函数
        parent::__construct();       
    }

    public function index()
    {
        //渲染一个模板页面 V = View
        return $this->view->fetch();
    }

    public function register()
    {
        // 访问地址：www.fast.com/index.php/home/index/register
        //渲染模板 application/home/view/Index/register.html
        return $this->view->fetch();
    }

    public function login()
    {
        // 访问地址：www.fast.com/index.php/home/index/register
        //渲染模板 application/home/view/Index/register.html
        return $this->view->fetch();
    }
}
